package libra;

import org.springframework.cloud.endpoint.event.RefreshEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/** 自定义Event事件处理，主要监听RefreshEvent事件的发布 */
@Component
public class ConfigRefreshEvent implements ApplicationListener<RefreshEvent> {
	@Override
	public void onApplicationEvent(RefreshEvent event) {
		System.out.println("捕获到RefreshEvent...");
	}
}